@import url("https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css");

:root {
    --highlight: #5756e6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(22, 22, 23, .8);
    border-bottom: 1px solid #ccc;
}

.list-item {
    list-style-type: none;
    flex-basis: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.2s ease;
    cursor: pointer;
}

.list-item-name {
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    transform: translate(0, 50px);
    transition: transform 0.5s ease, opacity 0.2s ease;
    opacity: 0;
}

.list-item:hover {
    color: var(--highlight);
    transform: translateY(-6px);
}

.list-item:hover .list-item-name {
    transform: translateY(20px);
    opacity: 1;
}

@media (max-width: 350px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        max-width: 120px;
        padding-bottom: 20px;
    }

    .list-item {
        flex-basis: auto;
    }

    .list-item:hover .list-item-name {
        transform: translateY(25px);
    }
}